﻿@using PortalWeb.Areas.Admin.Models
@model IEnumerable<NavbarFunctionViewModel>
@{
    Layout = null;
}  
  <!-- Fixed navbar -->
<div class="sidebar-nav">
    @{
        foreach (var navbarItem in Model.Where(p => p.ParentId == null))
        {
            <a href="#menu_@navbarItem.Id" class="nav-header" data-toggle="collapse">
                <i class="@navbarItem.Icon"></i>@navbarItem.FunctionName

            </a>
            <ul id="menu_@navbarItem.Id" class="nav nav-list collapse in">
              
                @foreach (var subNavbarItem in Model.Where(p => p.ParentId == navbarItem.Id))
                {
                    <li><a href="@subNavbarItem.ActionUrl">@subNavbarItem.FunctionName</a></li>
                }
            </ul>
        }
    }

    <a href="#accounts-menu" class="nav-header" data-toggle="collapse">
        <i class="fa fa-briefcase"></i>Account<span class="label label-info">+3</span>
    </a>
    <ul id="accounts-menu" class="nav nav-list collapse">
        <li><a href="sign-in.html">Sign In</a></li>
        <li><a href="sign-up.html">Sign Up</a></li>
        <li><a href="reset-password.html">Reset Password</a></li>
    </ul>
    <a href="#error-menu" class="nav-header collapsed" data-toggle="collapse">
        <i class="fa fa-exclamation-circle"></i>Error Pages
        <i class="fa fa-chevron-up"></i>
    </a>
    <ul id="error-menu" class="nav nav-list collapse">
        <li><a href="403.html">403 page</a></li>
        <li><a href="404.html">404 page</a></li>
        <li><a href="500.html">500 page</a></li>
        <li><a href="503.html">503 page</a></li>
    </ul>
    <a href="#legal-menu" class="nav-header" data-toggle="collapse">
        <i class="fa fa-legal"></i>Legal
    </a>
    <ul id="legal-menu" class="nav nav-list collapse">
        <li><a href="privacy-policy.html">Privacy Policy</a></li>
        <li><a href="terms-and-conditions.html">Terms and Conditions</a></li>
    </ul>
    <a href="help.html" class="nav-header"><i class="fa fa-question-circle"></i>Help</a>
    <a href="faq.html" class="nav-header"><i class="fa fa-comment"></i>Faq</a>
</div>
<!-- BEGIN PAGE -->